#include"node.h"
#include <stdio.h>
#include <iostream>

int main(void)
{
  std::string ss = "0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0";
  Maze* maze = new Maze(ss);
  Point* start = new Point(0,0,0,0);
  Point* end = new Point(4,4);
  Point* par = maze->Findpath(start, end);

  while (par != NULL && par != 0)
  {
    std::cout<<par->get_x()<<";"<<par->get_y()<<std::endl;
    par = par->get_parent();
  }
  return 0;
}